#include <BustaNetInternal.h>
Inheritance diagram for MPEndGame:
Public Member Functions | |
MPEndGame (int playerCount) | |
CONSTRUCTOR. | |
MPEndGame (int playerCount, int *rankings, int *points) | |
CONSTRUCTOR. | |
int * | getRankings () |
Returns an integer array of the rankings of the players. | |
int * | getPoints () |
Returns the number of points each player has accumulated in the multiplayer game. |
This message is received by all players when the multiplayer game has ended.
|
CONSTRUCTOR. Creates an instance of the MPEndGame class. Defines the number of players that was in the game.
|
|
CONSTRUCTOR. Creates an instance of the MPEndGame class. Defines the number of players that was in the game as well as the rankings and points for all players.
|
|
Returns the number of points each player has accumulated in the multiplayer game. At the end of the game, this message contains the points that each player has accumulated in the game. This correlates directly with the rankings array. For instance, if player number 3 is at index 0 of the rankings array, the points that player 3 has accumulated in the game is in index 0 of the points array.
|
|
Returns an integer array of the rankings of the players. At the game end, the message is received. It contains the rankings of the players for the ended multiplayer game. The integer at index 0 is the identification number of the first player to drop out, and the integer at index numPlayers-1, the number of players in the game, is the winner.
|